package top.shen33.yang.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author oreilly
 * @since 2018-08-15
 */
public class RelUserRole extends Model<RelUserRole> {

private static final long serialVersionUID = 1L;

                    @TableId(value = "sid", type = IdType.AUTO)
                private Integer sid;
        private Integer roleId;
        private Integer userId;


    public Integer getSid() {
            return sid;
            }

        public void setSid(Integer sid) {
            this.sid = sid;
            }

    public Integer getRoleId() {
            return roleId;
            }

        public void setRoleId(Integer roleId) {
            this.roleId = roleId;
            }

    public Integer getUserId() {
            return userId;
            }

        public void setUserId(Integer userId) {
            this.userId = userId;
            }

@Override
protected Serializable pkVal() {
            return this.sid;
        }

@Override
public String toString() {
        return "RelUserRole{" +
                ", sid=" + sid +
                ", roleId=" + roleId +
                ", userId=" + userId +
        "}";
        }
        }
